import java.util.Scanner;
import java.util.Calendar;

/**
 * @author gao
 * @date 2025/8/6 15:17
 */

public class Main {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        int year = console.nextInt();
        for (int i = 1; i <= 12; i++) {
            Calendar calendar = Calendar.getInstance();
            calendar.set(year, i - 1, 1);
            System.out.println(year + "年" + i + "月:" + calendar.getActualMaximum(Calendar.DAY_OF_MONTH) + "天");
        }
    }
}